<div style="width:960px;margin:auto;" id="secondary-footer">
	<!-- Buttons -->
	<div class="tmargin-big bmargin">
		<a href="<?php echo site_url('main/page/returns_view');?>" class="br-button"> <img src="<?php print ASSETS_URL?>images/icons/button/back.png"/> <?php echo lang('return_product')?></a>
		<a href="<?php echo site_url('ring_sizer');?>" class="br-button"> <img src="<?php print ASSETS_URL?>images/icons/button/ring.png"/> <?php echo lang('free_ring_sizer')?></a>
		<a href="<?php echo site_url('address_list')?>" class="br-button"> <img src="<?php print ASSETS_URL?>images/icons/button/mail.png"/> <?php echo lang('adress_list')?></a>
		<a href="<?php echo site_url('contact')?>" class="br-button"> <img src="<?php print ASSETS_URL?>images/icons/button/phone.png"/> <?php echo lang('contact_us_button')?></a>
	</div>
	
	<?php 
		if (!isset($hide_promotions) || !$hide_promotions){
			$products_promo = get_promotions();
		}
		$opinions = get_opinions();
	?>
	<?php if (!empty($related_products)){?>
		<div class="recently-viewed rounded-corners light-brown-border tmargin-big">
			<div class="head rposition"> <h4><?php echo lang('related_products')?></h4> <a href="<?php echo get_filter_url('related_to',$main_product[0]->id)?>" class="list-all"><?php echo lang('view_all')?></a> </div>
			<div class="">
				<ul id="carousel_slide" class="jcarousel-skin-tango">
				<?php foreach($related_products as $product){ 
					if ($product->main_image_url){
						$product->url = $product->main_image_url;
					}
				?>				
					<li>
						<a href="<?php echo get_product_url($product->name,$product->id)?>">
							<div>
								<img src="<?php echo SMALL_IMAGE_URL . $product->url?>" />
							</div>
							<span class="rounded-corners black-label center-text">
								<div class=" banner-light-brown"><?php echo lang('prod_price')?>: <?php echo get_prod_prices($product->id,$sel_currency,true); ?></div>
							</span>
						</a>
					</li>			
				
				<?php }?>
				</ul>			
			</div>
		</div>
	<?php }
	if (!empty($products_promo)){?>
		<div class="recently-viewed rounded-corners light-brown-border tmargin-big">
			<div class="head rposition"> <h4><?php echo lang('promotions_text')?></h4> <a href="<?php echo get_filter_url('promotion',1)?>" class="list-all"><?php echo lang('view_all')?></a> </div>
			<div class="">
				<ul id="carousel_slide" class="jcarousel-skin-tango">
				<?php foreach($products_promo as $product){ 
					if ($product->main_image_url){
						$product->url = $product->main_image_url;
					}
				?>				
					<li>
						<a href="<?php echo get_product_url($product->name,$product->id)?>">
							<div>
								<img src="<?php echo SMALL_IMAGE_URL . $product->url?>" />
							</div>
							<span class="rounded-corners black-label center-text">
								<div class=" banner-light-brown"><?php echo lang('prod_price')?>: <?php echo $exchange->transformPrice($product->min_price,$sel_currency,true,$product->id,false,false,$product->promotion_value) . ' ' . $sel_currency?></div>
							</span>
						</a>
					</li>			
				
				<?php }?>
				</ul>			
			</div>
		</div>
	<?php }
	if (!isset($hide_opinion)){
		if (!empty($opinions)){?>
			<div class="recently-viewed rounded-corners light-brown-border tmargin-big">
					<div class="head rposition"> <h4><?php echo lang('user_opinions')?></h4> <a href="<?php echo site_url('opinion');?>" class="list-all"><?php echo lang('view_all')?></a> </div>
					<div class="content">
						<?php foreach($opinions as $key=>$opinion){ ?>
						<div class="banner-light-brown ddark-grey opinion-element left <?php echo $key==2 ? 'no-border' : ''; ?> ">
							<p> <b><?php echo (strlen($opinion->user_name) ? $opinion->user_name : lang('anonimus'))?></b></p>
							<p>
								<?php echo $opinion->opinion;?>
							</p>
						</div>
						<?php } ?>
						<div class="clear"></div>
					</div>
				</div>
		<?php }
	}?>
	
	<div class='sitemap'><span class="sitemap-head"><?echo lang('sitemap_label')?> :</span><?php echo lang('sitemap',true)?></div>
	<div class="clear"></div>
</div>

<div id="main-footer">
	<div class="caps center">
		<div class="left box lmargin">
			<p class="white title upper"><strong><?php echo lang('collection')?></strong></p>
			<?php echo lang('collection_content',true)?>
		</div>
		<div class="left box lmargin">
			<p class="white title upper"><strong><?php echo lang('customer')?></strong></p>
			<?php echo lang('customer_content',true)?>
		</div>
		<div class="left box lmargin">
			<p class="white title upper"><strong><?php echo lang('advice_information')?></strong></p>
			<?php echo lang('advice_information_content',true)?>
		</div>
		<div class="left box lmargin ">
			<p class="white title upper"><?php echo lang('about_us_label')?></strong></p>
			<?php echo lang('about_us_content',true)?>
		</div>
		<div class="left box lmargin">
			<p class="white title upper"><strong><?php echo lang('business')?></strong></p>
			<?php echo lang('business_content',true)?>
		</div>
		<div class="clear"></div>
		<div class="copy"><?php echo lang('copy_right_footer')?> </div>
	</div>
</div> 
